<tr id="razred_<?php echo $razred->getId() ?>">
  <th><label class="txLabel">
    <span style="font-weight:bold;"><?php echo $razred ?></span><br />
    <a href="#" onclick="mail_skloni_razred('<?php echo $razred->getId() ?>')"> skloni</a><br />
    <a href="javascript:check_all('razred_<?php echo $razred->getId() ?>', 1)"> all</a><br />
    <a href="javascript:check_all('razred_<?php echo $razred->getId() ?>', 0)"> none</a>
  </label></th>
  <td>
    <table>
    <tr>
    <?php
    $br = 1;
    $br_ucenika = count($uceniks);
    foreach($uceniks as $id => $ime){?>
      <td>
        <input type='checkbox' value='<?php echo $id ?>' name='<?php echo $id ?>' /><?php echo $ime ?>
      </td>
      <?php
      if ($br % 5 == 0 and $br != $br_ucenika)
      {
        echo "</tr><tr>";
      }
      else if ($br == $br_ucenika)
      {
        echo "</tr>";
      }
      $br++;
    }?>
    </table>
  </td>
</tr>
